//
//  ContactModel.swift
//  WeiXin1.0
//
//  Created by safeu on 2017/11/11.
//  Copyright © 2017年 xyy. All rights reserved.
//

import UIKit

class ContactModel: NSObject {
    var avatar: String!
    var name: String!
    
    override init() {
        super.init()
    }
    
    init(dic:[String: AnyObject]){
        super.init()
        self.setValuesForKeys(dic)
        
        
    }
    
    class func initWithAvatar(_ avatar: NSString,name:NSString)->ContactModel{
        let model = ContactModel()
            model.name = name as String!
            model.avatar = avatar as String!
        return model
        
    }
}
